package com.xy;


import com.xy.brand.Vivo;
import com.xy.brand.XiaoMi;
import com.xy.phone.FoldedPhone;
import com.xy.phone.Phone;
import com.xy.phone.UpRightPhone;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/11 19:11
 * @description
 */
public class Client {

    public static void main(String[] args) {
        Phone foldedPhone = new FoldedPhone(new XiaoMi());
        Phone upRightPhone = new UpRightPhone(new Vivo());
        foldedPhone.close();
        foldedPhone.open();
        foldedPhone.call();
        System.out.println("===============");
        upRightPhone.close();
        upRightPhone.open();
        upRightPhone.call();
    }
}
